Submit an arbitrary image generation job. Returns a job_id in <2s.
curl --request POST \
--url https://mcp.sagescreen.net/tools/generate_image_start \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"prompt": "<string>",
"model": "flux-2-pro",
"width": 123,
"height": 123,
"aspect_ratio": "<string>",
"job_id": ""
}
'import requests
url = "https://mcp.sagescreen.net/tools/generate_image_start"
payload = {
"prompt": "<string>",
"model": "flux-2-pro",
"width": 123,
"height": 123,
"aspect_ratio": "<string>",
"job_id": ""
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
model: 'flux-2-pro',
width: 123,
height: 123,
aspect_ratio: '<string>',
job_id: ''
})
};
fetch('https://mcp.sagescreen.net/tools/generate_image_start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.sagescreen.net/tools/generate_image_start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'model' => 'flux-2-pro',
'width' => 123,
'height' => 123,
'aspect_ratio' => '<string>',
'job_id' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.sagescreen.net/tools/generate_image_start"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.sagescreen.net/tools/generate_image_start")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/generate_image_start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Image Generation
Submit an arbitrary image generation job. Returns a job_id in <2s.
Submit an arbitrary image generation job. Returns a job_id in <2s.
If the user message contains [job_id=...], pass that value as job_id so the
harvester can deliver the finished image back to the Slack channel automatically.
POST
/
tools
/
generate_image_start
Submit an arbitrary image generation job. Returns a job_id in <2s.
curl --request POST \
--url https://mcp.sagescreen.net/tools/generate_image_start \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"prompt": "<string>",
"model": "flux-2-pro",
"width": 123,
"height": 123,
"aspect_ratio": "<string>",
"job_id": ""
}
'import requests
url = "https://mcp.sagescreen.net/tools/generate_image_start"
payload = {
"prompt": "<string>",
"model": "flux-2-pro",
"width": 123,
"height": 123,
"aspect_ratio": "<string>",
"job_id": ""
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
model: 'flux-2-pro',
width: 123,
height: 123,
aspect_ratio: '<string>',
job_id: ''
})
};
fetch('https://mcp.sagescreen.net/tools/generate_image_start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.sagescreen.net/tools/generate_image_start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'model' => 'flux-2-pro',
'width' => 123,
'height' => 123,
'aspect_ratio' => '<string>',
'job_id' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.sagescreen.net/tools/generate_image_start"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.sagescreen.net/tools/generate_image_start")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/generate_image_start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"model\": \"flux-2-pro\",\n \"width\": 123,\n \"height\": 123,\n \"aspect_ratio\": \"<string>\",\n \"job_id\": \"\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
serviceTokentokenQuery
Body
application/json
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.
⌘I